package by.bsu.scs.model;

// Generated 05.03.2011 11:02:05 by Hibernate Tools 3.4.0.CR1

import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * This class contains Task details.
 * 
 */
public class Task implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	private int taskId;
	private String taskDescription;
	private String taskTitle;
	private Date creationDate;
	private int maxUpload;
	private MarkPolicy markPolicy;
	private Set<DisciplineTask> disciplineTask = new HashSet<DisciplineTask>(0);

	public Task() {
	}

	public Task(String taskDescription, String taskTitle, Date creationDate,
			int maxUpload, MarkPolicy markPolicy) {
		super();
		this.taskDescription = taskDescription;
		this.taskTitle = taskTitle;
		this.creationDate = creationDate;
		this.maxUpload = maxUpload;
		this.markPolicy = markPolicy;
	}

	public Task(String taskDescription, String taskTitle, Date creationDate,
			int maxUpload, MarkPolicy markPolicy,
			Set<DisciplineTask> disciplineTask) {
		this.taskDescription = taskDescription;
		this.taskTitle = taskTitle;
		this.creationDate = creationDate;
		this.maxUpload = maxUpload;
		this.markPolicy = markPolicy;
		this.disciplineTask = disciplineTask;
	}

	public int getTaskId() {
		return this.taskId;
	}

	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}

	public String getTaskDescription() {
		return this.taskDescription;
	}

	public void setTaskDescription(String taskDescription) {
		this.taskDescription = taskDescription;
	}

	public String getTaskTitle() {
		return this.taskTitle;
	}

	public void setTaskTitle(String taskTitle) {
		this.taskTitle = taskTitle;
	}

	public Date getCreationDate() {
		return this.creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public int getMaxUpload() {
		return this.maxUpload;
	}

	public void setMaxUpload(int maxUpload) {
		this.maxUpload = maxUpload;
	}

	public MarkPolicy getMarkPolicy() {
		return this.markPolicy;
	}

	public void setMarkPolicy(MarkPolicy markPolicy) {
		this.markPolicy = markPolicy;
	}

	public Set<DisciplineTask> getDisciplineTask() {
		return this.disciplineTask;
	}

	public void setDisciplineTask(Set<DisciplineTask> disciplineTask) {
		this.disciplineTask = disciplineTask;
	}

}
